#ifndef DIALOG_MAP_H
#define DIALOG_MAP_H

#include <QDialog>
#include <QHash>
#include <QGridLayout>
#include <QTimer>
#include <QPropertyAnimation>
#include "adress.h"
#include "map.h"

namespace Ui {
    class Dialog_Map;
}

class Dialog_Map : public QDialog
{
    Q_OBJECT
private:
    QHash <int, Adress *> route;
    Map * map;
    QTimer * timer_map_move_up;
    QTimer * timer_map_move_down;
    QTimer * timer_map_move_left;
    QTimer * timer_map_move_right;
    void update_info_map();

public:
    explicit Dialog_Map(QWidget *parent = 0);
    ~Dialog_Map();
    void setRoute(QHash <int, Adress *> route);
    void init();
protected:
    void changeEvent(QEvent *e);
public slots:
    void update_map();
    void Map_Move_Up();
    void Map_Move_Down();
    void Map_Move_Left();
    void Map_Move_Right();
    void fullscreen();
    void print();
    void Change_Theme(QString theme_name, QString style);
private:
    Ui::Dialog_Map *ui;
};

#endif // DIALOG_MAP_H
